﻿using Prism.Unity;
using Prism.Ioc;
using System.Windows;

namespace PdfPreView
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<Views.MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            
        }

        protected override void ConfigureViewModelLocator()
        {
            base.ConfigureViewModelLocator();
            Prism.Mvvm.ViewModelLocationProvider.Register<Views.MainWindow, ViewModels.MainWindowVM>();
        }
    }
}
